.class public final Lnet/tsapps/topdeals/b/j;
.super Landroid/app/Dialog;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lnet/tsapps/topdeals/a/j;

.field private b:Landroid/content/DialogInterface$OnClickListener;

.field private c:Landroid/widget/ListView;

.field private d:Landroid/widget/Button;

.field private e:Landroid/widget/Button;


# direct methods
.method public constructor <init>(Landroid/content/Context;JLandroid/content/DialogInterface$OnClickListener;)V
    .locals 2

    invoke-direct {p0, p1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;)V

    iput-object p4, p0, Lnet/tsapps/topdeals/b/j;->b:Landroid/content/DialogInterface$OnClickListener;

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/j;->requestWindowFeature(I)Z

    const v0, 0x7f030004

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/j;->setContentView(I)V

    const v0, 0x7f05001f

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/j;->c:Landroid/widget/ListView;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->c:Landroid/widget/ListView;

    new-instance v1, Lnet/tsapps/topdeals/b/c;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/b/c;-><init>(Lnet/tsapps/topdeals/b/j;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    new-instance v0, Lnet/tsapps/topdeals/a/j;

    new-instance v1, Lnet/tsapps/topdeals/e/a;

    invoke-direct {v1, p2, p3}, Lnet/tsapps/topdeals/e/a;-><init>(J)V

    invoke-direct {v0, p1, v1}, Lnet/tsapps/topdeals/a/j;-><init>(Landroid/content/Context;Lnet/tsapps/topdeals/e/a;)V

    iput-object v0, p0, Lnet/tsapps/topdeals/b/j;->a:Lnet/tsapps/topdeals/a/j;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lnet/tsapps/topdeals/b/j;->a:Lnet/tsapps/topdeals/a/j;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    const v0, 0x7f050021

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/j;->d:Landroid/widget/Button;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->d:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f050020

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/j;->e:Landroid/widget/Button;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->e:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic a(Lnet/tsapps/topdeals/b/j;)Lnet/tsapps/topdeals/a/j;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->a:Lnet/tsapps/topdeals/a/j;

    return-object v0
.end method


# virtual methods
.method public final a()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->a:Lnet/tsapps/topdeals/a/j;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/a/j;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final a(J)V
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->a:Lnet/tsapps/topdeals/a/j;

    invoke-virtual {v0, p1, p2}, Lnet/tsapps/topdeals/a/j;->a(J)V

    return-void
.end method

.method public final onClick(Landroid/view/View;)V
    .locals 2

    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->e:Landroid/widget/Button;

    if-ne p1, v0, :cond_1

    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->b:Landroid/content/DialogInterface$OnClickListener;

    const/4 v1, 0x0

    invoke-interface {v0, p0, v1}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V

    invoke-virtual {p0}, Lnet/tsapps/topdeals/b/j;->dismiss()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lnet/tsapps/topdeals/b/j;->d:Landroid/widget/Button;

    if-ne p1, v0, :cond_0

    invoke-virtual {p0}, Lnet/tsapps/topdeals/b/j;->dismiss()V

    goto :goto_0
.end method
